<?php
header('content-type:text/html;charset=utf-8');
include 'functions.php';

$preg = '/<p>(.*?)<\/p>/';
$str = "<p>2222</p><p>33</p>";

//用str字符串中符合preg规则的内容替换成*
$result = preg_replace($preg,'<p><strong>\1</strong></p>',$str);
p($result);







